@model ShivamEMR.Model.Domain.CompanyDomain.Schedule

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.Title)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Title)
    @Html.ValidationMessageFor(model => model.Title)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Description)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Description)
    @Html.ValidationMessageFor(model => model.Description)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.StartTime)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.StartTime)
    @Html.ValidationMessageFor(model => model.StartTime)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.EndTime)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.EndTime)
    @Html.ValidationMessageFor(model => model.EndTime)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Notes)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Notes)
    @Html.ValidationMessageFor(model => model.Notes)
</div>

<div class="editor-label">
    ScheduleStatus
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.ScheduleStatusID, ((IEnumerable<ShivamEMR.Model.Domain.CompanyDomain.ScheduleStatus>)ViewBag.PossibleScheduleStatus).Select(option => new SelectListItem {
        Text = Html.DisplayTextFor(_ => option).ToString(), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.ScheduleStatusID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.ScheduleStatusID)
</div>
